#set(title="档案管理")
#@layout()

#define body()
<div class="layui-main">

    <div style="margin-top: 15px">
        <form action="" class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">员工编号</label>
                <div class="layui-input-inline">
                    <input autocomplete="off" class="layui-input" lay-verify="number" name="id" placeholder="请输入员工编号"
                           type="text">
                </div>
                <button class="layui-btn" lay-filter="search" lay-submit>搜索</button>
            </div>
        </form>
    </div>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>
            <a>全部人员</a>
        </legend>
    </fieldset>
    <table id="table" lay-filter="emp-table"></table>
</div>
#end


<script type="text/html" id="barDemo">
    #if(manager)
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    #else
    <a class="layui-btn layui-btn-xs" lay-event="access">编辑</a>
    #end
    <!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
</script>


#define css()
<link href="/assets/css/record.css" rel="stylesheet">
#end


#define js()
<script src="/assets/js/record.js"></script>
#end


<form class="layui-form new-emp-form" action="" id="newEmpForm" lay-filter="newEmpForm">
    <input hidden id="id">
    <div class="layui-form-item">
        <label class="layui-form-label">员工用户名</label>
        <div class="layui-input-block">
            <input type="text" name="username" required lay-verify="required" placeholder="请输入员工名" autocomplete="off"
                   class="layui-input" id="username">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">默认密码</label>
        <div class="layui-input-block">
            <input type="text" name="pwd" required lay-verify="required" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <input type="radio" name="gender" value="男" title="男">
            <input type="radio" name="gender" value="女" title="女" checked>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">生日</label>
        <div class="layui-input-inline">
            <input type="text" name="birthday" autocomplete="off" required id="birthday" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份证</label>
        <div class="layui-input-block">
            <input type="text" name="idCard" placeholder="请输入身份证" lay-verify="identity" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">地区</label>
        <div class="layui-input-block">
            <input type="text" name="area" placeholder="请输入地区" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">籍贯</label>
        <div class="layui-input-block">
            <input type="text" name="nativePlace" placeholder="请输入籍贯" autocomplete="off" class="layui-input">
        </div>
    </div>

    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">状态</label>-->
    <!--<div class="layui-input-inline">-->
    <!--<select name="state" disabled>-->
    <!--<option value="在职">在职</option>-->
    <!--<option value="返聘">返聘</option>-->
    <!--<option value="实习生">实习生</option>-->
    <!--</select>-->
    <!--</div>-->
    <!--</div>-->


    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">部门</label>-->
    <!--<div class="layui-input-inline">-->
    <!--<select name="department" lay-verify="required" disabled>-->
    <!--<option value=""></option>-->
    <!--#for(x:department)-->
    <!--<option value="#(x.id)">#(x.dName)</option>-->
    <!--#end-->
    <!--</select>-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux">员工部门修改请转人事调动</div>-->

    <!--</div>-->
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">员工权限</label>-->
    <!--<div class="layui-input-inline">-->
    <!--<select name="level" lay-verify="required" disabled>-->
    <!--<option value="员工">员工</option>-->
    <!--<option value="部门经理">部门经理</option>-->
    <!--</select>-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux">员工权限修改请转人事调动</div>-->
    <!--</div>-->

    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">管理员</label>-->
    <!--<div class="layui-input-inline" style="width:80px ;">-->
    <!--<input type="checkbox" name="admin" lay-skin="switch">-->
    <!--</div>-->
    <!--</div>-->

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="editEmpSubmit">立即提交</button>
            <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
        </div>
    </div>
</form>
